% returns number of active synapses, dead synapses and synapses in Memory
% for given connectome
function [activeSynapses, deadSynapses, SynapsesInMemory ] = GetStatisticsOfConnectome( connectome )
    activeSynapses = 0;
    deadSynapses = 0;
    SynapsesInMemory = 0;
    for i=1:length(connectome.synapses)
        synapse = connectome.synapses(i);
        if(synapse.active == 0)
            deadSynapses = deadSynapses+1;
        end
        if(synapse.belongsToMemory == 1)
            SynapsesInMemory = SynapsesInMemory+1;
        end
        if(synapse.active == 1)
            activeSynapses = activeSynapses+1;
        end
    end
end

